home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / program / libkb100.zip / LIBKB-1.00 / UTIL / KEYS.H < prev    next >
C/C++ Source or Header  |  1996-07-23  |  9KB  |  265 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_keys_h_
  3. #define __dj_include_keys_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  10.  
  11. #ifndef __STRICT_ANSI__
  12.  
  13. #ifndef _POSIX_SOURCE
  14.  
  15. /* Values as returned from getkey() and getxkey() */
  16.  
  17. #define K_Control_A            0x001
  18. #define K_Control_B            0x002
  19. #define K_Control_C            0x003
  20. #define K_Control_D            0x004
  21. #define K_Control_E            0x005
  22. #define K_Control_F            0x006
  23. #define K_Control_G            0x007
  24. #define K_BackSpace            0x008
  25. #define K_Control_H            0x008
  26. #define K_Tab                  0x009
  27. #define K_Control_I            0x009
  28. #define K_LineFeed             0x00a
  29. #define K_Control_J            0x00a
  30. #define K_Control_K            0x00b
  31. #define K_Control_L            0x00c
  32. #define K_Return               0x00d
  33. #define K_Control_M            0x00d
  34. #define K_Control_N            0x00e
  35. #define K_Control_O            0x00f
  36. #define K_Control_P            0x010
  37. #define K_Control_Q            0x011
  38. #define K_Control_R            0x012
  39. #define K_Control_S            0x013
  40. #define K_Control_T            0x014
  41. #define K_Control_U            0x015
  42. #define K_Control_V            0x016
  43. #define K_Control_W            0x017
  44. #define K_Control_X            0x018
  45. #define K_Control_Y            0x019
  46. #define K_Control_Z            0x01a
  47. #define K_Control_LBracket     0x01b
  48. #define K_Escape               0x01b
  49. #define K_Control_BackSlash    0x01c
  50. #define K_Control_RBracket     0x01d
  51. #define K_Control_Caret        0x01e
  52. #define K_Control_Underscore   0x01f
  53. #define K_Space                0x020
  54. #define K_ExclamationPoint     0x021
  55. #define K_DoubleQuote          0x022
  56. #define K_Hash                 0x023
  57. #define K_Dollar               0x024
  58. #define K_Percent              0x025
  59. #define K_Ampersand            0x026
  60. #define K_Quote                0x027
  61. #define K_LParen               0x028
  62. #define K_RParen               0x029
  63. #define K_Star                 0x02a
  64. #define K_Plus                 0x02b
  65. #define K_Comma                0x02c
  66. #define K_Dash                 0x02d
  67. #define K_Period               0x02e
  68. #define K_Slash                0x02f
  69. #define K_Colon                0x03a
  70. #define K_SemiColon            0x03b
  71. #define K_LAngle               0x03c
  72. #define K_Equals               0x03d
  73. #define K_RAngle               0x03e
  74. #define K_QuestionMark         0x03f
  75. #define K_At                   0x040
  76. #define K_LBracket             0x05b
  77. #define K_BackSlash            0x05c
  78. #define K_RBracket             0x05d
  79. #define K_Caret                0x05e
  80. #define K_UnderScore           0x05f
  81. #define K_BackQuote            0x060
  82. #define K_LBrace               0x07b
  83. #define K_Pipe                 0x07c
  84. #define K_RBrace               0x07d
  85. #define K_Tilde                0x07e
  86. #define K_Control_Backspace    0x07f
  87.  
  88. #define K_Alt_Escape           0x101
  89. #define K_Control_At           0x103
  90. #define K_Alt_Backspace        0x10e
  91. #define K_BackTab              0x10f
  92. #define K_Alt_Q                0x110
  93. #define K_Alt_W                0x111
  94. #define K_Alt_E                0x112
  95. #define K_Alt_R                0x113
  96. #define K_Alt_T                0x114
  97. #define K_Alt_Y                0x115
  98. #define K_Alt_U                0x116
  99. #define K_Alt_I                0x117
  100. #define K_Alt_O                0x118
  101. #define K_Alt_P                0x119
  102. #define K_Alt_LBracket         0x11a
  103. #define K_Alt_RBracket         0x11b
  104. #define K_Alt_Return           0x11c
  105. #define K_Alt_A                0x11e
  106. #define K_Alt_S                0x11f
  107. #define K_Alt_D                0x120
  108. #define K_Alt_F                0x121
  109. #define K_Alt_G                0x122
  110. #define K_Alt_H                0x123
  111. #define K_Alt_J                0x124
  112. #define K_Alt_K                0x125
  113. #define K_Alt_L                0x126
  114. #define K_Alt_Semicolon        0x127
  115. #define K_Alt_Quote            0x128
  116. #define K_Alt_Backquote        0x129
  117. #define K_Alt_Backslash        0x12b
  118. #define K_Alt_Z                0x12c
  119. #define K_Alt_X                0x12d
  120. #define K_Alt_C                0x12e
  121. #define K_Alt_V                0x12f
  122. #define K_Alt_B                0x130
  123. #define K_Alt_N                0x131
  124. #define K_Alt_M                0x132
  125. #define K_Alt_Comma            0x133
  126. #define K_Alt_Period           0x134
  127. #define K_Alt_Slash            0x135
  128. #define K_Alt_KPStar           0x137
  129. #define K_F1                   0x13b
  130. #define K_F2                   0x13c
  131. #define K_F3                   0x13d
  132. #define K_F4                   0x13e
  133. #define K_F5                   0x13f
  134. #define K_F6                   0x140
  135. #define K_F7                   0x141
  136. #define K_F8                   0x142
  137. #define K_F9                   0x143
  138. #define K_F10                  0x144
  139. #define K_Home                 0x147
  140. #define K_Up                   0x148
  141. #define K_PageUp               0x149
  142. #define K_Alt_KPMinus          0x14a
  143. #define K_Left                 0x14b
  144. #define K_Center               0x14c
  145. #define K_Right                0x14d
  146. #define K_Alt_KPPlus           0x14e
  147. #define K_End                  0x14f
  148. #define K_Down                 0x150
  149. #define K_PageDown             0x151
  150. #define K_Insert               0x152
  151. #define K_Delete               0x153
  152. #define K_Shift_F1             0x154
  153. #define K_Shift_F2             0x155
  154. #define K_Shift_F3             0x156
  155. #define K_Shift_F4             0x157
  156. #define K_Shift_F5             0x158
  157. #define K_Shift_F6             0x159
  158. #define K_Shift_F7             0x15a
  159. #define K_Shift_F8             0x15b
  160. #define K_Shift_F9             0x15c
  161. #define K_Shift_F10            0x15d
  162. #define K_Control_F1           0x15e
  163. #define K_Control_F2           0x15f
  164. #define K_Control_F3           0x160
  165. #define K_Control_F4           0x161
  166. #define K_Control_F5           0x162
  167. #define K_Control_F6           0x163
  168. #define K_Control_F7           0x164
  169. #define K_Control_F8           0x165
  170. #define K_Control_F9           0x166
  171. #define K_Control_F10          0x167
  172. #define K_Alt_F1               0x168
  173. #define K_Alt_F2               0x169
  174. #define K_Alt_F3               0x16a
  175. #define K_Alt_F4               0x16b
  176. #define K_Alt_F5               0x16c
  177. #define K_Alt_F6               0x16d
  178. #define K_Alt_F7               0x16e
  179. #define K_Alt_F8               0x16f
  180. #define K_Alt_F9               0x170
  181. #define K_Alt_F10              0x171
  182. #define K_Control_Print        0x172
  183. #define K_Control_Left         0x173
  184. #define K_Control_Right        0x174
  185. #define K_Control_End          0x175
  186. #define K_Control_PageDown     0x176
  187. #define K_Control_Home         0x177
  188. #define K_Alt_1                0x178
  189. #define K_Alt_2                0x179
  190. #define K_Alt_3                0x17a
  191. #define K_Alt_4                0x17b
  192. #define K_Alt_5                0x17c
  193. #define K_Alt_6                0x17d
  194. #define K_Alt_7                0x17e
  195. #define K_Alt_8                0x17f
  196. #define K_Alt_9                0x180
  197. #define K_Alt_0                0x181
  198. #define K_Alt_Dash             0x182
  199. #define K_Alt_Equals           0x183
  200. #define K_Control_PageUp       0x184
  201. #define K_F11                  0x185
  202. #define K_F12                  0x186
  203. #define K_Shift_F11            0x187
  204. #define K_Shift_F12            0x188
  205. #define K_Control_F11          0x189
  206. #define K_Control_F12          0x18a
  207. #define K_Alt_F11              0x18b
  208. #define K_Alt_F12              0x18c
  209. #define K_Control_Up           0x18d
  210. #define K_Control_KPDash       0x18e
  211. #define K_Control_Center       0x18f
  212. #define K_Control_KPPlus       0x190
  213. #define K_Control_Down         0x191
  214. #define K_Control_Insert       0x192
  215. #define K_Control_Delete       0x193
  216. #define K_Control_KPSlash      0x195
  217. #define K_Control_KPStar       0x196
  218. #define K_Alt_EHome            0x197
  219. #define K_Alt_EUp              0x198
  220. #define K_Alt_EPageUp          0x199
  221. #define K_Alt_ELeft            0x19b
  222. #define K_Alt_ERight           0x19d
  223. #define K_Alt_EEnd             0x19f
  224. #define K_Alt_EDown            0x1a0
  225. #define K_Alt_EPageDown        0x1a1
  226. #define K_Alt_EInsert          0x1a2
  227. #define K_Alt_EDelete          0x1a3
  228. #define K_Alt_KPSlash          0x1a4
  229. #define K_Alt_Tab              0x1a5
  230. #define K_Alt_Enter            0x1a6
  231.  
  232. #def